]> dgit.raspbian.org Git - gnome-shell.git/commit
keyboard: Use the right property to figure out modifiers set size
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 23 Aug 2022 16:29:09 +0000 (18:29 +0200)
committerMarge Bot <marge-bot@gnome.org>
Tue, 23 Aug 2022 18:37:11 +0000 (18:37 +0000)
commit622590179b33e3c4dc4d132fc8129671a397ed07
treeff3c3daa454630fa35944a9b5b690868e1130821
parentb9359f4f07c942b91009db5f7ce7f7ba6ef50110
keyboard: Use the right property to figure out modifiers set size

During development of the OSK updates, this._modifiers turned from an
array into a Set(), but this location missed switching from length()
to size() to get the cardinality of the contained values.

As a result, the OSK misbehaved and resorted for key event forwarding
for impossible keyvals, instead of handing them directly to the IM.

Fixes: https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/5766
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2445>
js/ui/keyboard.js